<?php
namespace app\common\controller;
use framework\ext\Check;
use framework\ext\Util;

class UploadsController extends \app\base\controller\AdminController{

    //文件上传
    public function index(){
        if($this->isPost()){
            $result = model('upload')->uploadFile($_FILES);
            echo json_encode($arr);
        }else{
            $this->frameid = form('get.id',0,intval);
            $this->display();
        }
    }
}